package com.netposa.datawarehouse.aggregator.client;

import com.netposa.appwebres.common.WebResInfo;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

public interface BodyServiceClient {
   @RequestMapping({"/body/get_by_recordIds"})
   WebResInfo getBodyOriginalByIds(@RequestBody BodyCondition var1);

   @RequestMapping({"/body/list"})
   WebResInfo getBodyOriginalList(@RequestBody String var1);

   WebResInfo countBody(@RequestBody String var1);

   public static class BodyCondition {
      private String recordIds;
      private String deviceId;
      private Long startTime;
      private Long endTime;

      public String getRecordIds() {
         return this.recordIds;
      }

      public String getDeviceId() {
         return this.deviceId;
      }

      public Long getStartTime() {
         return this.startTime;
      }

      public Long getEndTime() {
         return this.endTime;
      }

      public void setRecordIds(String recordIds) {
         this.recordIds = recordIds;
      }

      public void setDeviceId(String deviceId) {
         this.deviceId = deviceId;
      }

      public void setStartTime(Long startTime) {
         this.startTime = startTime;
      }

      public void setEndTime(Long endTime) {
         this.endTime = endTime;
      }

      public boolean equals(Object o) {
         if (o == this) {
            return true;
         } else if (!(o instanceof BodyCondition)) {
            return false;
         } else {
            BodyCondition other = (BodyCondition)o;
            if (!other.canEqual(this)) {
               return false;
            } else {
               label59: {
                  Object this$recordIds = this.getRecordIds();
                  Object other$recordIds = other.getRecordIds();
                  if (this$recordIds == null) {
                     if (other$recordIds == null) {
                        break label59;
                     }
                  } else if (this$recordIds.equals(other$recordIds)) {
                     break label59;
                  }

                  return false;
               }

               Object this$deviceId = this.getDeviceId();
               Object other$deviceId = other.getDeviceId();
               if (this$deviceId == null) {
                  if (other$deviceId != null) {
                     return false;
                  }
               } else if (!this$deviceId.equals(other$deviceId)) {
                  return false;
               }

               Object this$startTime = this.getStartTime();
               Object other$startTime = other.getStartTime();
               if (this$startTime == null) {
                  if (other$startTime != null) {
                     return false;
                  }
               } else if (!this$startTime.equals(other$startTime)) {
                  return false;
               }

               Object this$endTime = this.getEndTime();
               Object other$endTime = other.getEndTime();
               if (this$endTime == null) {
                  if (other$endTime != null) {
                     return false;
                  }
               } else if (!this$endTime.equals(other$endTime)) {
                  return false;
               }

               return true;
            }
         }
      }

      protected boolean canEqual(Object other) {
         return other instanceof BodyCondition;
      }

      public int hashCode() {
         
         int result = 1;
         Object $recordIds = this.getRecordIds();
         result = result * 59 + ($recordIds == null ? 43 : $recordIds.hashCode());
         Object $deviceId = this.getDeviceId();
         result = result * 59 + ($deviceId == null ? 43 : $deviceId.hashCode());
         Object $startTime = this.getStartTime();
         result = result * 59 + ($startTime == null ? 43 : $startTime.hashCode());
         Object $endTime = this.getEndTime();
         result = result * 59 + ($endTime == null ? 43 : $endTime.hashCode());
         return result;
      }

      public String toString() {
         return "BodyServiceClient.BodyCondition(recordIds=" + this.getRecordIds() + ", deviceId=" + this.getDeviceId() + ", startTime=" + this.getStartTime() + ", endTime=" + this.getEndTime() + ")";
      }
   }
}
